package com.flying;

/**
 * @author 刘鹏飞
 * @Classname JavaBeanToArray
 * @Date 2024/12/16 20:11
 * @Created by 刘鹏飞
 * @Description 使用JavaBean和数组存储表格数据
 */
public class JavaBeanToArray {
    public static void main(String[] args) {

        Employee emp1 = new Employee(1, "小乔", 26, "法师");
        Employee emp2 = new Employee(2, "大乔", 23, "辅助");
        Employee emp3 = new Employee(3, "周瑜", 45, "法师");
        Employee emp4= new Employee(4, "孙策", 22, "战士");


        Employee[] employees = new Employee[]{emp1,emp2,emp3,emp4};


        for (Employee employee : employees) {
            System.out.println(employee);
        }



    }

}
